package com.youngjun.user.service;

import com.youngjun.common.mybatis.service.support.BaseService;
import com.youngjun.user.mapper.FunctionInterfaceMapper;
import com.youngjun.user.pojo.domain.FunctionInterface;
import com.youngjun.user.pojo.dto.FunctionInterfaceDTO;

public interface FunctionInterfaceService extends BaseService<FunctionInterface,FunctionInterfaceMapper> {


    /**
     * 创建功能与接口的关系
     * @param dto 参数
     */
    void create(FunctionInterfaceDTO dto);


    /**
     * 根据功能id删除关系
     * @param functionId 功能id
     */
    void deleteWithLogicByFunctionId(Long functionId);

    /**
     * 根据接口id删除关系
     * @param interfaceId 接口id
     */
    void deleteWithLogicByInterfaceId(Long interfaceId);

    /**
     * 删除关系
     * @param functionId 功能id
     * @param interfaceId 接口id
     */
    void delete(Long functionId,Long interfaceId);

}